import React, { useEffect } from 'react'
import { Input } from 'antd'

import './requestData.less'

const { TextArea } = Input

const RequestData = props => {

    const { id } = props

    useEffect(() => {
        console.log("update-->", id)
    }, null)

    return (
        <div className="data-info-schema">
            <div className="request-title">
                请求数据格式：
            </div>
            <div className="request-body">
                <TextArea rows={15} defaultValue="请求数据格式" disabled={true} />
            </div> 
            <div className="response-title">
                响应数据格式：    
            </div> 
            <div className="response-body">
                <TextArea rows={10} defaultValue="响应数据格式" disabled={true} />
            </div>         
        </div>
    )
}

export default RequestData